/*
** ADOBE SYSTEMS INCORPORATED
** Copyright 2012 Adobe Systems Incorporated
** All Rights Reserved.
**
** NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the
** terms of the Adobe license agreement accompanying it.  If you have received this file from a
** source other than Adobe, then your use, modification, or distribution of it requires the prior
** written permission of Adobe.
*/

#pragma once
#include <Actor.h>

namespace SpaceTriangle
{
	class Game;

	/*
	* One of the projectiles flying through space
	*/
	class Asteroid : public Actor
	{
		var colorVector;
		flash::display3D::IndexBuffer3D i3dbuffer;
		flash::display3D::VertexBuffer3D v3dbuffer;
		flash::geom::Matrix3D objectToWorld;

		Game *game;

	public:
		Asteroid(flash::display3D::Context3D ctx3d, Game *_game, vec3 _pos, vec3 _speed);

		virtual ~Asteroid() {}

		virtual void tick();

		virtual void render();
	};
}